package com.fhz.a2102shopjava.ui.mine;

import androidx.lifecycle.LiveData;

import com.fhz.a2102shopjava.base.BaseDataSource;
import com.fhz.a2102shopjava.base.BaseRepository;
import com.fhz.a2102shopjava.callback.ApiResponse;
import com.fhz.a2102shopjava.entity.Banner;
import com.fhz.a2102shopjava.entity.GoodsInfo;
import com.fhz.a2102shopjava.entity.ResponseBean;
import com.fhz.a2102shopjava.ui.home.HomeDataSource;

import java.util.List;

import javax.inject.Inject;

import retrofit2.http.Field;
import retrofit2.http.Query;

/**
 * 时间:2023/8/15
 *
 * @author Mr.Feng
 * 简述: TODO
 */
public class MineRepository {

    @Inject
    MineLocalDataSource mMineLocalDataSource;
    @Inject
    MineRemoteDataSource mMineRemoteDataSource;

    @Inject
    public MineRepository(MineLocalDataSource mineLocalDataSource, MineRemoteDataSource mineRemoteDataSource) {
        mMineLocalDataSource = mineLocalDataSource;
        mMineRemoteDataSource = mineRemoteDataSource;
    }

    public LiveData<ApiResponse<String>> getQiNiuToken(){
        return mMineRemoteDataSource.getQiNiuToken();
    }

    /**
     *更新头像
     */
    public LiveData<ApiResponse<String>> updateUserAvatar(String nickname,  String headImg){
        return mMineRemoteDataSource.updateUserAvatar(nickname, headImg);
    }


}

